﻿using Dapper.Contrib.Extensions;
using System;
using System.ComponentModel.DataAnnotations;
using Yuebon.Infrastructure;

namespace Yuebon.Shop.Models
{
    /// <summary>
    /// 分销员表，数据实体对象
    /// </summary>
    [Table("Shop_Referrals")]
    [Serializable]
    public class Referrals
    {
        public Referrals()
        {

        }

        #region Property Referrals
        /// <summary>
        /// 主键
        /// </summary>
        [MaxLength(50)]
        [ExplicitKey]
        public virtual string Id
        {
            get;
            set;
        }

        /// <summary>
        /// 会员Id
        /// </summary>
        public virtual string MemberId
        {
            get;
            set;
        }
        /// <summary>
        /// 状态
        /// </summary>
        public virtual int ReferralStatus
        {

            get;
            set;
        }

        /// <summary>
        /// 申请理由
        /// </summary>
        public virtual string RequetReason
        {

            get;
            set;
        }
        /// <summary>
        /// 申请日期
        /// </summary>
        public virtual DateTime? RequetDate
        {

            get;
            set;
        }
        /// <summary>
        /// 拒绝原因
        /// </summary>

        public virtual string RefusalReason
        {

            get;
            set;
        }
        /// <summary>
        /// 审核日期
        /// </summary>

        public virtual DateTime AuditDate
        {

            get;
            set;
        }

        /// <summary>
        /// 是否被清退
        /// </summary>
        public virtual bool IsRepeled
        {

            get;
            set;
        }

        /// <summary>
        /// 清退时间
        /// </summary>
        public virtual DateTime? RepelTime
        {

            get;
            set;
        }

        /// <summary>
        /// 清退理由
        /// </summary>
        public virtual string RepelReason
        {

            get;
            set;
        }

        /// <summary>
        /// 店铺名称
        /// </summary>
        public virtual string ShopName
        {

            get;
            set;
        }

        /// <summary>
        /// 店铺Banner图
        /// </summary>
        public virtual string BannerUrl
        {
           
            get;
            set;
        }

        /// <summary>
        /// 分销员等级
        /// </summary>
        public virtual string GradeId
        {

            get;
            set;
        }

        /// <summary>
        /// 联系电话
        /// </summary>
        public virtual string Cellphone
        {

            get;
            set;
        }

        /// <summary>
        /// 邮箱
        /// </summary>
        public virtual string Email
        {

            get;
            set;
        }

        /// <summary>
        /// 地址
        /// </summary>
        public virtual string Adress
        {

            get;
            set;
        }

        /// <summary>
        /// 分销员链接
        /// </summary>
        public virtual string ReferralsURL
        {

            get;
            set;
        }
        #endregion
    }
}
